package com.bandit.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    private int msgID;
    private String msgTitle;
    private String msgInfo;
    private int msgType;
    private Date releaseDate;

    //按信息类型查询构造函数
    public Message(int msgType) {
        this.msgType = msgType;
    }
}
